home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 38 / Amiga Format CD38 (1999-03-15)(Future Publishing)(GB)(Track 1 of 3)[!][issue 1999-04].iso / -in_the_mag- / reader_requests / dice_v3.15 / test / aatest.c next >
C/C++ Source or Header  |  1999-01-26  |  482b  |  34 lines

  1.  
  2. /*
  3.  *  auto-aggregate test
  4.  */
  5.  
  6. #include <exec/types.h>
  7. #include <intuition/intuition.h>
  8. #include <utility/tagitem.h>
  9. #include <clib/exec_protos.h>
  10. #include <clib/intuition_protos.h>
  11.  
  12.  
  13. main(ac, av)
  14. char *av[];
  15. {
  16.     struct Window *win;
  17.     struct TagItem Ti[] = {
  18.     WA_Left, 40,
  19.     WA_Top, 20,
  20.     WA_Width, atoi(av[1]),
  21.     WA_Height, atoi(av[2]),
  22.     WA_AutoAdjust, 1,
  23.     TAG_END
  24.     };
  25.  
  26.  
  27.     if (win = OpenWindowTagList(NULL, Ti)) {
  28.     Delay(50 * 5);
  29.     CloseWindow(win);
  30.     }
  31.     return(0);
  32. }
  33.  
  34.